package com.bto.solar.work.constant;

import java.util.Arrays;
import java.util.List;

/**
 * @author 王小波
 * @description:
 * @date 2023/11/9 20:44
 */
public enum EditAndApprovalEnum {
    /**
     * 客户信息
     */
    CUSTOMER_INFO_AUTH(Arrays.asList(DBConstants.PER_BIZ_ZZD), Arrays.asList(DBConstants.PER_APPROVAL_BIZ)),

    /**
     * 业务踏勘 -- 组织内审核
     */
    TASK_TA_KAN_INNER_AUTH(Arrays.asList(DBConstants.PER_BIZ_ZZD), Arrays.asList(DBConstants.PER_APPROVAL_TA_KAN)),

    /**
     * 业务踏勘 -- 博通审核
     */
    TASK_TA_KAN_BTO_AUTH(Arrays.asList(DBConstants.PER_BIZ_ZZD), Arrays.asList(DBConstants.PER_APPROVAL_KAN_CHA)),

    /**
     * 技术勘察
     */
    TASK_JSKC_BTO_AUTH(Arrays.asList(DBConstants.PER_JSKC), Arrays.asList(DBConstants.PER_APPROVAL_KAN_CHA)),

    /**
     * 备案证
     */
    TASK_BAZXX_BTO_AUTH(Arrays.asList(DBConstants.PER_APPROVAL_BIZ, DBConstants.PER_BIZ_ZZD, DBConstants.PER_CONSTRUCT), Arrays.asList(DBConstants.PER_APPROVAL_CONSTRUCT)),

    /**
     * 初设评审、设计变更
     */
    TASK_CSPSXX_BTO_AUTH(Arrays.asList(DBConstants.PER_DESIGN), Arrays.asList(DBConstants.PER_APPROVAL_DESIGN)),

    /**
     * 施工
     */
    TASK_SGXX_BTO_AUTH(Arrays.asList(DBConstants.PER_CONSTRUCT), Arrays.asList(DBConstants.PER_APPROVAL_CONSTRUCT)),

    /**
     * 并网信息
     */
    TASK_BWXX_BTO_AUTH(Arrays.asList(DBConstants.PER_GRID), Arrays.asList(DBConstants.PER_APPROVAL_GRID)),

    /**
     * 结算信息
     */
    TASK_JSXX_BTO_AUTH(Arrays.asList(DBConstants.PER_FINANCE), Arrays.asList(DBConstants.PER_APPROVAL_FINANCE)),

    /**
     * 购售电合同
     */
    TASK_GSDHTXX_BTO_AUTH(Arrays.asList(DBConstants.PER_GRID), Arrays.asList(DBConstants.PER_APPROVAL_BIZ));


    private final List<String> editList;
    private final List<String> approvalList;

    EditAndApprovalEnum(List<String> editList, List<String> approvalList) {
        this.editList = editList;
        this.approvalList = approvalList;
    }

    public List<String> getEditList() {
        return editList;
    }

    public List<String> getApprovalList() {
        return approvalList;
    }

    public List<String> setEditList() {
        return Arrays.asList(DBConstants.PER_BIZ_ZZD, DBConstants.PER_BIZ_ZZD);
    }
}
